import com.wzy.HisFactory;
import com.wzy.HisRunable;
import com.wzy.YourFactory;
import com.wzy.YourRunable;

public class HisFactoryTest {
    public static void main(String[] args) {

        HisRunable yr = new HisRunable();
        Thread cx = new Thread(yr);
        cx.setName("查询");

        Thread xz = new Thread(yr);
        xz.setName("新增");

        cx.start();
        xz.start();

        HisFactory factory = HisFactory.getInstance();
        factory = HisFactory.getInstance();
        factory = HisFactory.getInstance();
        factory = HisFactory.getInstance();
    }
}
